package com.thinkgem.jeesite.modules.gen;

/**
 * @Author:Kongxiangsheng
 * @DesCription:
 * @Date:Created in 17:01 2018/11/5
 * @Modified By:
 */
public class GenConstants {
    /**
     * 模板关系作用范围
     */
    public static class RelScope {
        /**
         * 增删改查-主表
         */
        public static final String CURD_MAIN = "curd_main";
        /**
         * 增删改查-子表
         */
        public static final String CURD_CHILD = "curd_child";
    }

    /**
     * 解析语言
     */
    public static class ParseType {
        public static final String BEETL = "beetl";
        public static final String FREEMARKER = "freemarker";
    }

    /**
     * Beetl参数
     */
    public static class BeetlParam {
        /**
         * 解析参数：全局参数
         **/
        public static final String GLOBAL = "g";
        /**
         * 解析参数：单表相关参数
         **/
        public static final String TABLE = "t";
    }

    public static class ParseModel {
        public static final String GLOBAL = "global";
        public static final String TABLE = "table";
    }

    public static class Param {
        /**
         * 数据库Driver
         */
        public static final String DB_DRIVER = "gen_dbDriver";
        /**
         * 数据库Url
         */
        public static final String DB_URL = "gen_dbUrl";
        /**
         * 数据库用户名
         */
        public static final String DB_USERNAME = "gen_dbUsername";
        /**
         * 数据库口令
         */
        public static final String DB_PASSWORD = "gen_dbPassword";

        /**
         * 是否检验基础字段开关
         */
        public static final String CHECK_BASE_COL_SWITCH = "gen_checkBaseColumnsSwitch";
    }
}
